Clean up private headers
authorMatthias Clasen <mclasen@redhat.com>
Sat, 5 Apr 2014 06:04:12 +0000 (02:04 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 5 Apr 2014 06:06:29 +0000 (02:06 -0400)
This commit adds a few missing private headers, and cleans up
some irregularities in the existing ones

35 files changed:
gtk/Makefile.am
gtk/a11y/gtkimageaccessible.c
gtk/gtkaccelgroup.h
gtk/gtkaccelgroupprivate.h
gtk/gtkaccelmap.c
gtk/gtkaccelmapprivate.h
gtk/gtkappchooserprivate.h
gtk/gtkapplication-quartz-menu.c
gtk/gtkapplicationprivate.h
gtk/gtkclipboard-waylandprivate.h
gtk/gtkclipboardprivate.h
gtk/gtkcoloreditorprivate.h
gtk/gtkcolorplaneprivate.h
gtk/gtkcolorscaleprivate.h
gtk/gtkcolorswatchprivate.h
gtk/gtkheaderbarprivate.h
gtk/gtknumerableiconprivate.h
gtk/gtkpressandholdprivate.h
gtk/gtkrange.c
gtk/gtkrange.h
gtk/gtkrangeprivate.h [new file with mode: 0644]
gtk/gtkscale.c
gtk/gtkscrollbar.c
gtk/gtkscrolledwindow.c
gtk/gtkselectionprivate.h
gtk/gtkseparatortoolitem.c
gtk/gtksizegroup-private.h
gtk/gtkthemingengineprivate.h
gtk/gtktoolbar.c
gtk/gtktoolbar.h
gtk/gtktoolbarprivate.h [new file with mode: 0644]
gtk/gtktoolbutton.c
gtk/gtktoolpaletteprivate.h
gtk/gtktreeprivate.h
gtk/gtkwidget.c

index 68b3eeb1a9798e7e1b90ebdf91f566d1929f0850..c281666dde4e3237dbe43b5d7632f788079c221d 100644 (file)
@@ -530,6 +530,7 @@ gtk_private_h_sources =             \
        gtkprivate.h            \
        gtkpixelcacheprivate.h  \
        gtkquery.h              \
+       gtkrangeprivate.h       \
        gtkrbtree.h             \
        gtkrecentchooserdefault.h \
        gtkrecentchooserprivate.h \
@@ -563,6 +564,7 @@ gtk_private_h_sources =             \
        gtkthemingbackgroundprivate.h \
        gtkthemingengineprivate.h \
        gtktrashmonitor.h       \
+       gtktoolbarprivate.h     \
        gtktoolpaletteprivate.h \
        gtktreedatalist.h       \
        gtktreeprivate.h        \
index 08ab5189d3d5eaabd1beb31198057fbbdb640015..57b7e09b34774ef9b461a1594ed222a87cfb30f2 100644 (file)
@@ -20,6 +20,7 @@
 #include <string.h>
 #include <gtk/gtk.h>
 #include "gtkimageaccessible.h"
+#include "gtktoolbarprivate.h"
 #include "gtkintl.h"
 
 struct _GtkImageAccessiblePrivate
index 25b85cd1dd9fe1eee1fc4430cfad464f3eeae0f8..ffc2e7d70614cc97bfb30047467d255c52df7c75 100644 (file)
@@ -229,27 +229,12 @@ GDK_AVAILABLE_IN_ALL
 GdkModifierType
         gtk_accelerator_get_default_mod_mask (void);
 
-
-/* --- internal --- */
 GDK_AVAILABLE_IN_ALL
 GtkAccelGroupEntry*    gtk_accel_group_query   (GtkAccelGroup  *accel_group,
                                                 guint           accel_key,
                                                 GdkModifierType accel_mods,
                                                 guint          *n_entries);
 
-void                _gtk_accel_group_reconnect (GtkAccelGroup *accel_group,
-                                                GQuark         accel_path_quark);
-GSList*       _gtk_accel_group_get_accelerables (GtkAccelGroup *accel_group);
-
-struct _GtkAccelGroupEntry
-{
-  GtkAccelKey  key;
-  GClosure    *closure;
-  GQuark       accel_path_quark;
-};
-
-
 G_END_DECLS
 
-
 #endif /* __GTK_ACCEL_GROUP_H__ */
index f1eb28ac422905aa21b6aa2b35fcc96a56dd3a53..0537f1f75e8d1e1d1069b267e8e6e1b396e5208a 100644 (file)
@@ -1,5 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* GTK - The GIMP Toolkit
+ * Copyright (C) 1998, 2001 Tim Janik
  * Copyright (C) Javier Jardón <jjardon@gnome.org>
  *
  * This library is free software; you can redistribute it and/or
 #define __GTK_ACCEL_GROUP_PRIVATE_H__
 
 
+#include <gtk/gtkaccelgroup.h>
+
+G_BEGIN_DECLS
+
 struct _GtkAccelGroupPrivate
 {
   guint               lock_count;
@@ -29,4 +34,17 @@ struct _GtkAccelGroupPrivate
   GtkAccelGroupEntry *priv_accels;
 };
 
-#endif  /* __GTK_ACCEL_GROUP_PRIVATE_H__ */
+void   _gtk_accel_group_reconnect        (GtkAccelGroup *accel_group,
+                                           GQuark         accel_path_quark);
+GSList* _gtk_accel_group_get_accelerables (GtkAccelGroup *accel_group);
+
+struct _GtkAccelGroupEntry
+{
+  GtkAccelKey  key;
+  GClosure    *closure;
+  GQuark       accel_path_quark;
+};
+
+G_END_DECLS
+
+#endif /* __GTK_ACCEL_GROUP_PRIVATE_H__ */
index 791a593c7c0ec9518f3cfeb302ddcc09712aa7f9..c3a196d2775e9bc811df6e0f3019a9fa2acd36bd 100644 (file)
@@ -18,6 +18,7 @@
 #include "config.h"
 
 #include "gtkaccelmapprivate.h"
+#include "gtkaccelgroupprivate.h"
 
 #include "gtkmarshalers.h"
 #include "gtkwindowprivate.h"
index e825dd3abec3ac018f99206db1d17a74317557b2..8be1e5e74a957a51f9c67207731955d72e65192c 100644 (file)
 #define __GTK_ACCEL_MAP_PRIVATE_H__
 
 
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
-
 #include <gtk/gtkaccelmap.h>
 
 G_BEGIN_DECLS
index 609bc186005f276d0b834be414b35edb4c910b0c..b5fe2e9aec3f8dd1e63a8c9583bc3e6b93642d7e 100644 (file)
@@ -29,6 +29,8 @@
 #include "gtkappchooserwidget.h"
 #include "gtkentry.h"
 
+G_BEGIN_DECLS
+
 typedef struct _GtkAppChooserIface GtkAppChooserIface;
 typedef GtkAppChooserIface GtkAppChooserInterface;
 
@@ -45,4 +47,7 @@ void
 _gtk_app_chooser_widget_set_search_entry (GtkAppChooserWidget *self,
                                           GtkEntry            *entry);
 
+
+G_END_DECLS
+
 #endif /* __GTK_APP_CHOOSER_PRIVATE_H__ */
index 41fbea6a3ea739fee11a476cf4bec5da0903bc23..cff1bc948d06c6eda5349e130981a2cc0489bbe1 100644 (file)
@@ -23,7 +23,7 @@
 #include "gtkapplicationprivate.h"
 #include "gtkmenutracker.h"
 #include "gtkicontheme.h"
-#include "gtktoolbar.h"
+#include "gtktoolbarprivate.h"
 #include "gtkquartz.h"
 
 #include <gdk/quartz/gdkquartz.h>
index 3ba26d5c17923eee29b115cbf84308d62822c98a..5378c23b17c3003206c1c7faed058d4bae8c5ab6 100644 (file)
 
 #include "gtkactionmuxer.h"
 
-G_GNUC_INTERNAL
+G_BEGIN_DECLS
+
 void                    gtk_application_window_set_id                   (GtkApplicationWindow     *window,
                                                                          guint                     id);
-G_GNUC_INTERNAL
 GActionGroup *          gtk_application_window_get_action_group         (GtkApplicationWindow     *window);
-G_GNUC_INTERNAL
 void                    gtk_application_handle_window_realize           (GtkApplication           *application,
                                                                          GtkWindow                *window);
-G_GNUC_INTERNAL
 void                    gtk_application_handle_window_map               (GtkApplication           *application,
                                                                          GtkWindow                *window);
-G_GNUC_INTERNAL
 GtkActionMuxer *        gtk_application_get_parent_muxer_for_window     (GtkWindow                *window);
 
-G_GNUC_INTERNAL
 gboolean                gtk_application_activate_accel                  (GtkApplication           *application,
                                                                          GActionGroup             *action_group,
                                                                          guint                     key,
                                                                          GdkModifierType           modifier);
 
-G_GNUC_INTERNAL
 void                    gtk_application_foreach_accel_keys              (GtkApplication           *application,
                                                                          GtkWindow                *window,
                                                                          GtkWindowKeysForeachFunc  callback,
                                                                          gpointer                  user_data);
-G_GNUC_INTERNAL
 GtkActionMuxer *        gtk_application_get_action_muxer                (GtkApplication           *application);
-G_GNUC_INTERNAL
 void                    gtk_application_insert_action_group             (GtkApplication           *application,
                                                                          const gchar              *name,
                                                                          GActionGroup             *action_group);
@@ -153,67 +146,48 @@ typedef struct
                                              GtkWindow                   *window);
 } GtkApplicationImplDBusClass;
 
-G_GNUC_INTERNAL
 GType                   gtk_application_impl_get_type                   (void);
-G_GNUC_INTERNAL
 GType                   gtk_application_impl_dbus_get_type              (void);
-G_GNUC_INTERNAL
 GType                   gtk_application_impl_x11_get_type               (void);
-G_GNUC_INTERNAL
 GType                   gtk_application_impl_wayland_get_type           (void);
-G_GNUC_INTERNAL
 GType                   gtk_application_impl_quartz_get_type            (void);
 
-G_GNUC_INTERNAL
 GtkApplicationImpl *    gtk_application_impl_new                        (GtkApplication              *application,
                                                                          GdkDisplay                  *display);
-G_GNUC_INTERNAL
 void                    gtk_application_impl_startup                    (GtkApplicationImpl          *impl,
                                                                          gboolean                     register_sesion);
-G_GNUC_INTERNAL
 void                    gtk_application_impl_shutdown                   (GtkApplicationImpl          *impl);
-G_GNUC_INTERNAL
 void                    gtk_application_impl_before_emit                (GtkApplicationImpl          *impl,
                                                                          GVariant                    *platform_data);
-G_GNUC_INTERNAL
 void                    gtk_application_impl_window_added               (GtkApplicationImpl          *impl,
                                                                          GtkWindow                   *window);
-G_GNUC_INTERNAL
 void                    gtk_application_impl_window_removed             (GtkApplicationImpl          *impl,
                                                                          GtkWindow                   *window);
-G_GNUC_INTERNAL
 void                    gtk_application_impl_active_window_changed      (GtkApplicationImpl          *impl,
                                                                          GtkWindow                   *window);
-G_GNUC_INTERNAL
 void                    gtk_application_impl_handle_window_realize      (GtkApplicationImpl          *impl,
                                                                          GtkWindow                   *window);
-G_GNUC_INTERNAL
 void                    gtk_application_impl_handle_window_map          (GtkApplicationImpl          *impl,
                                                                          GtkWindow                   *window);
-G_GNUC_INTERNAL
 void                    gtk_application_impl_set_app_menu               (GtkApplicationImpl          *impl,
                                                                          GMenuModel                  *app_menu);
-G_GNUC_INTERNAL
 void                    gtk_application_impl_set_menubar                (GtkApplicationImpl          *impl,
                                                                          GMenuModel                  *menubar);
-G_GNUC_INTERNAL
 guint                   gtk_application_impl_inhibit                    (GtkApplicationImpl          *impl,
                                                                          GtkWindow                   *window,
                                                                          GtkApplicationInhibitFlags   flags,
                                                                          const gchar                 *reason);
-G_GNUC_INTERNAL
 void                    gtk_application_impl_uninhibit                  (GtkApplicationImpl          *impl,
                                                                          guint                        cookie);
-G_GNUC_INTERNAL
 gboolean                gtk_application_impl_is_inhibited               (GtkApplicationImpl          *impl,
                                                                          GtkApplicationInhibitFlags   flags);
 
-G_GNUC_INTERNAL
 gchar *                 gtk_application_impl_dbus_get_window_path       (GtkApplicationImplDBus      *dbus,
                                                                          GtkWindow                   *window);
 
-G_GNUC_INTERNAL
 void                    gtk_application_impl_quartz_setup_menu          (GMenuModel                  *model,
                                                                          GtkActionMuxer              *muxer);
 
+G_END_DECLS
+
 #endif /* __GTK_APPLICATION_PRIVATE_H__ */
index d2d1f22535ec08516ee71212cd6d086b0a35e9fd..466d63ef68618dcd4486121283a5317e4ec9d7a3 100644 (file)
@@ -25,6 +25,8 @@
 #include <gdk/wayland/gdkwayland.h>
 #include <gtk/gtkclipboardprivate.h>
 
+G_BEGIN_DECLS
+
 #define GTK_TYPE_CLIPBOARD_WAYLAND            (gtk_clipboard_wayland_get_type ())
 #define GTK_CLIPBOARD_WAYLAND(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIPBOARD_WAYLAND, GtkClipboardWayland))
 #define GTK_IS_CLIPBOARD_WAYLAND(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CLIPBOARD_WAYLAND))
@@ -51,6 +53,8 @@ struct _GtkClipboardWaylandClass
 
 GType         gtk_clipboard_wayland_get_type (void) G_GNUC_CONST;
 
+G_END_DECLS
+
 #endif /* GDK_WINDOWING_WAYLAND */
 
 #endif /* __GTK_CLIPBOARD_WAYLAND_WAYLAND_PRIVATE_H__ */
index 48e1b05997a016585436c5ba185b26306db164b8..2e0127f880533363cc9687f7887d1f11c2ed4e63 100644 (file)
@@ -22,6 +22,8 @@
 
 #include <gtk/gtkclipboard.h>
 
+G_BEGIN_DECLS
+
 #define GTK_CLIPBOARD_CLASS(klass)             (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CLIPBOARD, GtkClipboardClass))
 #define GTK_IS_CLIPBOARD_CLASS(klass)          (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CLIPBOARD))
 #define GTK_CLIPBOARD_GET_CLASS(obj)            (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CLIPBOARD, GtkClipboardClass))
@@ -82,4 +84,6 @@ struct _GtkClipboardClass
                                                  GdkEventOwnerChange            *event);
 };
 
+G_END_DECLS
+
 #endif /* __GTK_CLIPBOARD_PRIVATE_H__ */
index 51a31234e1fc4fdd14bd4b4347c375fe3e7a6fb2..c0d40b3510802970cad71cde4e756452e1b71452 100644 (file)
 #ifndef __GTK_COLOR_EDITOR_H__
 #define __GTK_COLOR_EDITOR_H__
 
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
-
 #include <gtk/gtkbox.h>
 
 G_BEGIN_DECLS
@@ -57,10 +53,7 @@ struct _GtkColorEditorClass
 };
 
 
-G_GNUC_INTERNAL
 GType       gtk_color_editor_get_type (void) G_GNUC_CONST;
-
-G_GNUC_INTERNAL
 GtkWidget * gtk_color_editor_new      (void);
 
 G_END_DECLS
index 01c1ddb11b7e9196d28101ef5341d214135a4780..abb1a8184b015f1857030086ff67cfd40d230a69 100644 (file)
 #ifndef __GTK_COLOR_PLANE_H__
 #define __GTK_COLOR_PLANE_H__
 
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
-
 #include <gtk/gtkdrawingarea.h>
 #include <gtk/gtktypes.h>
 
@@ -58,10 +54,7 @@ struct _GtkColorPlaneClass
 };
 
 
-G_GNUC_INTERNAL
 GType       gtk_color_plane_get_type (void) G_GNUC_CONST;
-
-G_GNUC_INTERNAL
 GtkWidget * gtk_color_plane_new      (GtkAdjustment *h_adj,
                                       GtkAdjustment *s_adj,
                                       GtkAdjustment *v_adj);
index 1b843f3135e21f75ff96d5bd33986c27b508f63f..9ce776bb37ea685775afd3d3ed45d4bb05747ab2 100644 (file)
 #ifndef __GTK_COLOR_SCALE_H__
 #define __GTK_COLOR_SCALE_H__
 
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
-
 #include <gtk/gtkscale.h>
 
 G_BEGIN_DECLS
@@ -62,14 +58,9 @@ typedef enum
   GTK_COLOR_SCALE_ALPHA
 } GtkColorScaleType;
 
-G_GNUC_INTERNAL
 GType       gtk_color_scale_get_type (void) G_GNUC_CONST;
-
-G_GNUC_INTERNAL
 GtkWidget * gtk_color_scale_new      (GtkAdjustment     *adjustment,
                                       GtkColorScaleType  type);
-
-G_GNUC_INTERNAL
 void        gtk_color_scale_set_rgba (GtkColorScale     *scale,
                                       const GdkRGBA     *color);
 
index 67ed17525af51266317813b0cd9463f63a360e19..f7e80bc9da3dd0dc64adba9d9772e39ac69c08d7 100644 (file)
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __GTK_COLOR_SWATCH_H__
-#define __GTK_COLOR_SWATCH_H__
-
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
+#ifndef __GTK_COLOR_SWATCH_PRIVATE_H__
+#define __GTK_COLOR_SWATCH_PRIVATE_H__
 
 #include <gtk/gtkdrawingarea.h>
 
@@ -61,39 +57,27 @@ struct _GtkColorSwatchClass
 };
 
 
-G_GNUC_INTERNAL
 GType       gtk_color_swatch_get_type         (void) G_GNUC_CONST;
-
-G_GNUC_INTERNAL
 GtkWidget * gtk_color_swatch_new              (void);
-
-G_GNUC_INTERNAL
 void        gtk_color_swatch_set_rgba         (GtkColorSwatch *swatch,
                                                const GdkRGBA  *color);
-G_GNUC_INTERNAL
 gboolean    gtk_color_swatch_get_rgba         (GtkColorSwatch *swatch,
                                                GdkRGBA        *color);
-G_GNUC_INTERNAL
 void        gtk_color_swatch_set_hsva         (GtkColorSwatch *swatch,
                                                gdouble         h,
                                                gdouble         s,
                                                gdouble         v,
                                                gdouble         a);
-G_GNUC_INTERNAL
 void        gtk_color_swatch_set_can_drop     (GtkColorSwatch *swatch,
                                                gboolean        can_drop);
-G_GNUC_INTERNAL
 void        gtk_color_swatch_set_icon         (GtkColorSwatch *swatch,
                                                const gchar    *icon);
-G_GNUC_INTERNAL
 void        gtk_color_swatch_set_use_alpha    (GtkColorSwatch *swatch,
                                                gboolean        use_alpha);
-G_GNUC_INTERNAL
 void        gtk_color_swatch_set_selectable   (GtkColorSwatch *swatch,
                                                gboolean        selectable);
-G_GNUC_INTERNAL
 gboolean    gtk_color_swatch_get_selectable   (GtkColorSwatch *swatch);
 
 G_END_DECLS
 
-#endif /* __GTK_COLOR_SWATCH_H__ */
+#endif /* __GTK_COLOR_SWATCH_PRIVATE_H__ */
index 66c5433bdfe7b76672c388513c37d9039ea92ae6..e11506d344ff9036863b322824e58b4c067479de 100644 (file)
 #ifndef __GTK_HEADER_BAR_PRIVATE_H__
 #define __GTK_HEADER_BAR_PRIVATE_H__
 
+G_BEGIN_DECLS
+
 gboolean     _gtk_header_bar_shows_app_menu        (GtkHeaderBar *bar);
 void         _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar);
 gboolean     _gtk_header_bar_update_window_icon    (GtkHeaderBar *bar,
                                                     GtkWindow    *window);
 
+G_END_DECLS
+
 #endif /* __GTK_HEADER_BAR_PRIVATE_H__ */
index aee567a7984f1ad2e91bc78469b3c07b0027b90e..cea6d6488fc599a4c97e0197abf578881ccd7dab 100644 (file)
 
 #include "gtknumerableicon.h"
 
+G_BEGIN_DECLS
+
 void _gtk_numerable_icon_set_background_icon_size (GtkNumerableIcon *self,
                                                    gint icon_size);
 
+G_END_DECLS
+
 #endif /* __GTK_NUMERABLE_ICON_PRIVATE_H__ */
index 4dcc6986f61d54edd586fcf77bf93bcd6440dcc3..5574484d02f39abb471c63ceba6670d300cf6b43 100644 (file)
@@ -53,13 +53,8 @@ struct _GtkPressAndHoldClass
 };
 
 
-G_GNUC_INTERNAL
 GType             gtk_press_and_hold_get_type      (void) G_GNUC_CONST;
-
-G_GNUC_INTERNAL
 GtkPressAndHold * gtk_press_and_hold_new           (void);
-
-G_GNUC_INTERNAL
 void              gtk_press_and_hold_process_event (GtkPressAndHold *pah,
                                                     GdkEvent        *event);
 
index c66d2bddb9502eed7bdb394894e8e79c129bf0d5..6978674464b24e6f8e77253253c3362bd0e288f9 100644 (file)
@@ -29,6 +29,7 @@
 #include <math.h>
 
 #include "gtkrange.h"
+#include "gtkrangeprivate.h"
 
 #include "gtkadjustment.h"
 #include "gtkcolorscaleprivate.h"
index 94c809cdda740da0a0347a67f8acf59d4532548a..24a7ea1413c3fb105e961e15cd2ed75dabe6e913 100644 (file)
@@ -173,22 +173,6 @@ void               gtk_range_set_round_digits              (GtkRange      *range
 GDK_AVAILABLE_IN_ALL
 gint                gtk_range_get_round_digits              (GtkRange      *range);
 
-/* internal API */
-gdouble            _gtk_range_get_wheel_delta              (GtkRange       *range,
-                                                            GdkEventScroll *event);
-void               _gtk_range_set_has_origin               (GtkRange      *range,
-                                                            gboolean       has_origin);
-gboolean           _gtk_range_get_has_origin               (GtkRange      *range);
-void               _gtk_range_set_stop_values              (GtkRange      *range,
-                                                            gdouble       *values,
-                                                            gint           n_values);
-gint               _gtk_range_get_stop_positions           (GtkRange      *range,
-                                                            gint         **values);
-void               _gtk_range_set_steppers                 (GtkRange      *range,
-                                                            gboolean       has_a,
-                                                            gboolean       has_b,
-                                                            gboolean       has_c,
-                                                            gboolean       has_d);
 
 G_END_DECLS
 
diff --git a/gtk/gtkrangeprivate.h b/gtk/gtkrangeprivate.h
new file mode 100644 (file)
index 0000000..52512ef
--- /dev/null
@@ -0,0 +1,53 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/*
+ * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
+ * file for a list of people on the GTK+ Team.  See the ChangeLog
+ * files for a list of changes.  These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
+#ifndef __GTK_RANGE_PRIVATE_H__
+#define __GTK_RANGE_PRIVATE_H__
+
+
+#include <gtk/gtkrange.h>
+
+
+G_BEGIN_DECLS
+
+gdouble            _gtk_range_get_wheel_delta              (GtkRange       *range,
+                                                            GdkEventScroll *event);
+void               _gtk_range_set_has_origin               (GtkRange      *range,
+                                                            gboolean       has_origin);
+gboolean           _gtk_range_get_has_origin               (GtkRange      *range);
+void               _gtk_range_set_stop_values              (GtkRange      *range,
+                                                            gdouble       *values,
+                                                            gint           n_values);
+gint               _gtk_range_get_stop_positions           (GtkRange      *range,
+                                                            gint         **values);
+void               _gtk_range_set_steppers                 (GtkRange      *range,
+                                                            gboolean       has_a,
+                                                            gboolean       has_b,
+                                                            gboolean       has_c,
+                                                            gboolean       has_d);
+
+G_END_DECLS
+
+
+#endif /* __GTK_RANGE_PRIVATE_H__ */
index 435f877b184f518e126870bc98209d2794061f30..ace205347418dea50f9ada4d6b8b0b2abf0ae3e1 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 
 #include "gtkscaleprivate.h"
+#include "gtkrangeprivate.h"
 
 #include "gtkadjustment.h"
 #include "gtkbindings.h"
index 2fbbeba93faa8558160a35a21880cc051200a67c..a609045c866fba5c3bb452e738763a8f53891192 100644 (file)
@@ -26,6 +26,7 @@
 #include "config.h"
 
 #include "gtkscrollbar.h"
+#include "gtkrangeprivate.h"
 
 #include "gtkadjustment.h"
 #include "gtkintl.h"
index b93689cb516156eabec044701b76978458f2c255..8c33e985fb2fb17cfd2bcb8d6439f9b5026744fb 100644 (file)
@@ -35,6 +35,7 @@
 #include "gtkprivate.h"
 #include "gtkscrollable.h"
 #include "gtkscrollbar.h"
+#include "gtkrangeprivate.h"
 #include "gtktypebuiltins.h"
 #include "gtkviewport.h"
 #include "gtkwidgetprivate.h"
index e3a4aa55b179f1407d18e0c0ccce34aca4076819..bd5c634f654aa8b3f6421739fd21c5e22bb98c4a 100644 (file)
@@ -28,8 +28,8 @@
  * sent.
  */
 
-#ifndef __GTK_SELECTIONPRIVATE_H__
-#define __GTK_SELECTIONPRIVATE_H__
+#ifndef __GTK_SELECTION_PRIVATE_H__
+#define __GTK_SELECTION_PRIVATE_H__
 
 #include "gtkselection.h"
 
@@ -67,4 +67,4 @@ gboolean _gtk_selection_property_notify (GtkWidget         *widget,
 
 G_END_DECLS
 
-#endif /* __GTK_SELECTIONPRIVATE_H__ */
+#endif /* __GTK_SELECTION_PRIVATE_H__ */
index c6c2a4f52d77fb1d7eb457700b2189b8d16d60a3..b8ded83fb4c273752f7cd7b3afc7341dd0b0d79a 100644 (file)
@@ -21,7 +21,7 @@
 #include "gtkseparatormenuitem.h"
 #include "gtkseparatortoolitem.h"
 #include "gtkintl.h"
-#include "gtktoolbar.h"
+#include "gtktoolbarprivate.h"
 #include "gtkprivate.h"
 
 /**
index 5eab6cf95d4a98ce420077bb40296673d232d72a..11b6fa8ecd1ff4ac5b0d04b1c4d50a20fd0604d4 100644 (file)
@@ -21,7 +21,9 @@
 
 #include <gtk/gtksizegroup.h>
 
-/**
+G_BEGIN_DECLS
+
+/*
  * GtkQueueResizeFlags:
  * @GTK_QUEUE_RESIZE_INVALIDATE_ONLY: invalidate all cached sizes
  *  as we would normally do when a widget is queued for resize,
@@ -42,4 +44,6 @@ GHashTable * _gtk_size_group_get_widget_peers (GtkWidget           *for_widget,
 void _gtk_size_group_queue_resize             (GtkWidget           *widget,
                                                GtkQueueResizeFlags  flags);
 
+G_END_DECLS
+
 #endif /* __GTK_SIZE_GROUP_PRIVATE_H__ */
index 53262e152a533e2e9357eac1d9afed7b0b484655..1b61eb496a89c1220b3be954c0534fda95a4082e 100644 (file)
@@ -22,6 +22,8 @@
 #include "gtk/gtkthemingengine.h"
 #include "gtk/gtkcssvalueprivate.h"
 
+G_BEGIN_DECLS
+
 void _gtk_theming_engine_paint_spinner (cairo_t       *cr,
                                         gdouble        radius,
                                         gdouble        progress,
@@ -33,4 +35,6 @@ void          _gtk_theming_engine_set_context   (GtkThemingEngine *engine,
                                                  GtkStyleContext  *context);
 GtkStyleContext *_gtk_theming_engine_get_context   (GtkThemingEngine *engine);
 
+G_END_DECLS
+
 #endif /* __GTK_THEMING_ENGINE_PRIVATE_H__ */
index c5729248fb7fd6f28311c79a234e919a5e9308a2..33d91da3b530cb14f9e6719648aba14c15aaced9 100644 (file)
@@ -34,6 +34,7 @@
 #include <string.h>
 
 #include "gtktoolbar.h"
+#include "gtktoolbarprivate.h"
 
 #include "gtkarrow.h"
 #include "gtkbindings.h"
index 6cf05322c04adb178044693ca31ce8c7c227c4ab..f91ecfbb4fb014b756980e56248a5cc00c18a956 100644 (file)
@@ -146,14 +146,6 @@ void            gtk_toolbar_set_drop_highlight_item (GtkToolbar      *toolbar,
                                                     gint             index_);
 
 
-/* internal functions */
-gchar *         _gtk_toolbar_elide_underscores      (const gchar         *original);
-void            _gtk_toolbar_paint_space_line       (GtkWidget           *widget,
-                                                    GtkToolbar          *toolbar,
-                                                     cairo_t             *cr);
-gint            _gtk_toolbar_get_default_space_size (void);
-
-
 G_END_DECLS
 
 #endif /* __GTK_TOOLBAR_H__ */
diff --git a/gtk/gtktoolbarprivate.h b/gtk/gtktoolbarprivate.h
new file mode 100644 (file)
index 0000000..c63e901
--- /dev/null
@@ -0,0 +1,46 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
+ * GtkToolbar copyright (C) Federico Mena
+ *
+ * Copyright (C) 2002 Anders Carlsson <andersca@gnome.org>
+ * Copyright (C) 2002 James Henstridge <james@daa.com.au>
+ * Copyright (C) 2003 Soeren Sandmann <sandmann@daimi.au.dk>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/*
+ * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
+ * file for a list of people on the GTK+ Team.  See the ChangeLog
+ * files for a list of changes.  These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
+#ifndef __GTK_TOOLBAR_PRIVATE_H__
+#define __GTK_TOOLBAR_PRIVATE_H__
+
+#include <gtk/gtktoolbar.h>
+
+G_BEGIN_DECLS
+
+gchar *         _gtk_toolbar_elide_underscores      (const gchar         *original);
+void            _gtk_toolbar_paint_space_line       (GtkWidget           *widget,
+                                                    GtkToolbar          *toolbar,
+                                                     cairo_t             *cr);
+gint            _gtk_toolbar_get_default_space_size (void);
+
+
+G_END_DECLS
+
+#endif /* __GTK_TOOLBAR_PRIVATE_H__ */
index e5ac79272bc8e227ec490efd27234b971c14ed61..c8a51a6810755785dfc38915d750ae3d05acc54c 100644 (file)
@@ -27,7 +27,7 @@
 #include "deprecated/gtkstock.h"
 #include "gtkbox.h"
 #include "gtkintl.h"
-#include "gtktoolbar.h"
+#include "gtktoolbarprivate.h"
 #include "deprecated/gtkactivatable.h"
 #include "gtkactionable.h"
 #include "gtkprivate.h"
index 87e544b71639dc459cba0a88546b9bd06dc9db92..a2e94e201b3fa98fb66e68b2ff403f082ac54120 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <gtk/gtk.h>
 
+G_BEGIN_DECLS
+
 void _gtk_tool_palette_get_item_size           (GtkToolPalette   *palette,
                                                 GtkRequisition   *item_size,
                                                 gboolean          homogeneous_only,
@@ -49,4 +51,6 @@ gint _gtk_tool_item_group_get_size_for_limit   (GtkToolItemGroup *group,
 
 GtkSizeGroup *_gtk_tool_palette_get_size_group (GtkToolPalette   *palette);
 
+G_END_DECLS
+
 #endif /* __GTK_TOOL_PALETTE_PRIVATE_H__ */
index 9d0c301576f6b5f556f288a7a9e435e0e646fdcd..d8133525728f613011c2d2f5eef843bd0e10e791 100644 (file)
 #define __GTK_TREE_PRIVATE_H__
 
 
-G_BEGIN_DECLS
-
-
 #include <gtk/gtktreeview.h>
 #include <gtk/gtktreeselection.h>
 #include <gtk/gtkrbtree.h>
 
+G_BEGIN_DECLS
+
 #define TREE_VIEW_DRAG_WIDTH 6
 
 typedef enum
index de1a3ef44d6d40b8604a487247b306649354072c..d3d78ddb1f4be3c3d8a3030c197983e1a2c858fe 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "gtkcontainer.h"
 #include "gtkaccelmapprivate.h"
+#include "gtkaccelgroupprivate.h"
 #include "gtkclipboard.h"
 #include "gtkcssstylepropertyprivate.h"
 #include "gtkcssnumbervalueprivate.h"